
<html>
    <head>
    <?php 
		echo $this->Html->css('style.css');
	?>
        <title>カメラを見る</title>
        <script type="text/javascript" language="javascript">
            setInterval(function () {
                location.reload(true);
            }, 120000);
        </script>
    </head>
    <body  <?php if($click):?> style="text-align: center"<?php endif;?>>
        <div class="unit" style="height: 100%">
	        <?php if(!$click):?>
	            <img style="cursor: pointer"  id="camera" src="http://<?php echo $camera['Camera']['UniIp'] ?>:<?php echo $camera['Camera']['HttpPort'] ?>/cgi-bin/encoder?USER=<?php echo $camera['Camera']['UserName'] ?>&PWD=<?php echo $camera['Camera']['Password'] ?>&GET_STREAM" width="<?php echo $width ?>" height="<?php echo $height ?>" onclick="window.open('<?php  echo $this->Html->url(array("controller" => "camera","action" => "view",$camera['Camera']['Id'],'big',1));?>','', 'scrollbars=yes,resizable=yes');" />
	        <?php else:?>
	            <img style="cursor: pointer; height: 95%"  id="camera" src="http://<?php echo $camera['Camera']['UniIp'] ?>:<?php echo $camera['Camera']['HttpPort'] ?>/cgi-bin/encoder?USER=<?php echo $camera['Camera']['UserName'] ?>&PWD=<?php echo $camera['Camera']['Password'] ?>&GET_STREAM" />
	        <?php endif;?>
	        <div>
	        <span style="font-size: 12px"><?php echo $camera['Customer']['CustName'] ?></span>&nbsp;&nbsp;<span style="font-size: 12px"><?php echo $camera['Building']['BuildName'] ?></span>
	        &nbsp;&nbsp;<span style="font-size: 12px"><?php echo $camera['Camera']['CamName'] ?></span>
	        &nbsp;&nbsp;<span style="font-size: 12px"><?php echo date('Y-m-d H:i') ?></span>
	        </div>
		</div>
    </body>
</html>